<?php
// 返回所有数据
include 'base.php';
$username = $_POST['username'];
$password = $_POST['password'];
$sql = "SELECT * FROM `user` where `username`='$username' AND `password`='$password'";
$res = $conn->query($sql);
if(mysqli_fetch_assoc($res)){
  echo 1;
}else{
  echo 0;
};
